﻿@using yeubongda
@using yeubongda.Models
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    MENU MaMNCon = ViewBag.MaMNCon;
    List<MENU> listMenuCon = YBDModels.DocmenuCungCap(MaMNCon.MAMN);
    List<BAIBAO> listBaiBao = ViewBag.listBaiBao;
    MENU MenuCha = YBDModels.GetMenuCha(MaMNCon.MAMN);
    int soTrang = ViewBag.SoTrang;
    int trangHienTai = ViewBag.TrangHienTai;
}

<title>	Bóng đá @MaMNCon.TENMN, Bình luận bóng đá, Lịch sử bóng đá</title>

<div id="contentbody">
    <div id="ctl00_submenu" class="floatL mnu0">
        @for (int i = 0; i < listMenuCon.Count; i++)
        {
            <a class="floatL" href="@Url.Content("~/Home/BaiBaoTheoMenuCon/" + listMenuCon[i].MAMN)">@listMenuCon[i].TENMN</a>
            <span class="floatL mnu00"></span>
        }
    </div>
    <div id="contentText">
        <div class="sh5px"></div>
        <div id="Left">
        <div class="fllw100">
            <a class="sitemaphomepage" href="#"> Tạp chí bóng đá</a> &gt;&gt; 
            <a href="@Url.Content("~/Home/BaiBaoTheoMenuCha/" + MenuCha.MAMN)">@MenuCha.TENMN</a> &gt;&gt; 
            <a href="@Url.Content("~/Home/BaiBaoTheoMenuCon/" + MaMNCon.MAMN)">@MaMNCon.TENMN</a>
        </div>
        <div class="sh10px">
        </div>
        <div class="fll N_Title">
            <div class="fll NTitleLeft">
            </div>
            <div class="fll IConCategory">
                <img src="@Url.Content("~/Content/images/" + MaMNCon.logo)" style="height:20px;width:20px;border-width:0px;">
            </div>
            <div class="fll NTitleRepeat">@MaMNCon.TENMN</div>
            <div class="fll NTitleRight">
            </div>
            
        </div>
        <div class="fll N_Repeat">
            <div class="sh15px">
            </div>
            <div class="fll N_RepeatContent">
                <div class="fll N_ContentFocus">
                    @for (int j = 0; j < 4; j++)
                    {
                            <div class="sh5px"></div>
                            <div class="fllw100">
                                <a class="linkchitiet" href="@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao[j].MABAI)"> @listBaiBao[j].TENBAI</a>
                                <span class="label_date">&nbsp; @listBaiBao[j].Ngay </span>
                            </div>
                            <div class="fllw100 pdTB5px alignLeft">
                                <a class="linkchitiet" href="@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao[j].MABAI)">
                                <img class="NImage" src="@Url.Content("~/Content/images/" + listBaiBao[j].hinhanh)" alt="@listBaiBao[j].TENBAI" align="left" style="border-width:0px;"></a>
                                <span class="NSummury"><a href="/@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao[j].MABAI)"></a> @listBaiBao[j].TIEUDE</span>
                            </div>
                            <div class="sh5px"></div>
                    }
                </div>
                <div class="fll N_ContentList">
                    <p class="head_listother"><span>Các tin khác cùng chuyên mục</span></p>
                    @for (int j = 4; j < 10; j++)
                    {
                            <div class="fll NListItem0">
                                <a title="@listBaiBao[j].TENBAI" href="@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao[j].MABAI)">
                                <img class="NListImage" src="@Url.Content("~/Content/images/" + listBaiBao[j].hinhanh)" alt="@listBaiBao[j].TENBAI" align="left" style="border-width:0px;"></a>
                                <a title="@listBaiBao[j].TENBAI" href="@Url.Content("~/Home/BaiBaoDetail/" + listBaiBao[j].MABAI)">@listBaiBao[j].TENBAI</a>
                                <span class="NDate">@listBaiBao[j].Ngay </span>
                                <div class="fllw100">
                                </div>
                            </div>
                            <div class="sh5px"></div>
                    }
                </div>
            </div>
            <div class="sh10px"></div>
        </div>
        <div class="fll N_foot"></div>
        <div class="sh15px"></div>

        <div class="pagination">
            <div class="limit">
                <div>
                     @for (int i = 1; i <= soTrang; ++i)
                     {
                         if (trangHienTai == i)
                         {
                            <span class="current">@trangHienTai</span>
                         }
                         else
                         { <a  href="@Url.Content("~/Home/BaiBaoTheoMenuCon/" + MaMNCon.MAMN)?page=@i"> @i</a>}
                     }
                </div>
            </div>
            <div class="limit"></div>
        </div>
        <div class="sh15px"></div>
            
        <div>
            <div class="NOrther">
                <span>Các tin khác</span>
                <hr style="width: 100%; text-align: left; color: #cacaca;">
            </div>
            <div class="fllw100">
                @{List<BAIBAO> listMoi = YBDModels.DocBaiBaoMoiNhat(MenuCha.MAMN);}
                @for(int i=0; i<10;++i)
                {
                    <div class="NOrtherItem">
                        <a class="NOrtherLink" href="@Url.Content("~/Home/BaiBaoDetail/" + listMoi[i].MABAI)">@listMoi[i].TENBAI</a>
                        <span class="NDate">&nbsp;  @listMoi[i].Ngay </span>
                    </div>
                }
            </div>
            
        </div>
        <div class="sh15px"></div>
    </div>
    </div>
</div>        
